home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / XPK / Source / xpkmaster / util.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-01  |  533 b   |  27 lines

  1. #ifndef XPKMASTER_UTIL_C
  2. #define XPKMASTER_UTIL_C
  3.  
  4. /* Routinesheader
  5.  
  6.     Name:        util.c
  7.     Main:        xpkmaster
  8.     Versionstring:    $VER: util.c 1.1 (01.03.97)
  9.     Author:        SDI
  10.     Distribution:    PD
  11.     Description:    Miscellaneous utility functions
  12.  
  13.  1.0   09.10.96 : first real version
  14.  1.1   01.03.97 : removed basename
  15. */
  16.  
  17. #include <exec/types.h>
  18. #include "xpkmaster.h"
  19.  
  20. ULONG idfromname(STRPTR name)
  21. {
  22.   return (ULONG) (((toupper(name[0]) << 8 | toupper(name[1])) << 8 |
  23.            toupper(name[2])) << 8 | toupper(name[3]));
  24. }
  25.  
  26. #endif /* XPKMASTER_UTIL_C */
  27.